package com.demo;

public class CompareOperatorDemo1 {
    public static void main(String[] args) {
        //1.==,判断两边是否相等
        int a=10;
        int b=10;
        int c=20;

        System.out.println(a==b);//ture
        System.out.println(a==c);//false

        System.out.println("---------");
        //1.!=,判断两边是否不相等
        System.out.println(a!=b);//false
        System.out.println(a!=c);//ture
    }
}
